package com.lingchou.cloud.process.api.controller;

import com.lingchou.cloud.process.api.dto.param.ProcessNode;
import com.lingchou.cloud.process.api.dto.param.SummaryApproveParam;
import com.lc.common.bean.response.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.validation.groups.Default;

@RequestMapping("/process/v1")
@Api(value = "ProcessDynamicApiImpl", tags = "流程动态操作API")
public interface ProcessDynamicApi {

    @ApiOperation(value = "汇总审批", notes = "汇总审批 批量修改当前流程的后续节点")
    @PostMapping(value = "/summaryApprove")
    Result<Object> summaryApprove(@Validated({ProcessNode.Dynamic.class, Default.class})  @RequestBody SummaryApproveParam summaryApproveParam);
}
